|
Data Structures |
| struct | ESMatrix |
| struct | ESContext |
Defines |
| #define | ESUTIL_API __cdecl |
| #define | ESCALLBACK __cdecl |
| #define | ES_WINDOW_RGB 0 |
| | esCreateWindow flag - RGB color buffer
|
| #define | ES_WINDOW_ALPHA 1 |
| | esCreateWindow flag - ALPHA color buffer
|
| #define | ES_WINDOW_DEPTH 2 |
| | esCreateWindow flag - depth buffer
|
| #define | ES_WINDOW_STENCIL 4 |
| | esCreateWindow flag - stencil buffer
|
| #define | ES_WINDOW_MULTISAMPLE 8 |
| | esCreateWindow flat - multi-sample buffer
|
Functions |
| void ESUTIL_API | esInitContext (ESContext *esContext) |
| | Initialize ES framework context. This must be called before calling any other functions.
|
| GLboolean ESUTIL_API | esCreateWindow (ESContext *esContext, const char *title, GLint width, GLint height, GLuint flags) |
| | Create a window with the specified parameters.
|
| void ESUTIL_API | esMainLoop (ESContext *esContext) |
| | Start the main loop for the OpenGL ES application.
|
| void ESUTIL_API | esRegisterDrawFunc (ESContext *esContext, void(ESCALLBACK *drawFunc)(ESContext *)) |
| | Register a draw callback function to be used to render each frame.
|
| void ESUTIL_API | esRegisterUpdateFunc (ESContext *esContext, void(ESCALLBACK *updateFunc)(ESContext *, float)) |
| | Register an update callback function to be used to update on each time step.
|
| void ESUTIL_API | esRegisterKeyFunc (ESContext *esContext, void(ESCALLBACK *drawFunc)(ESContext *, unsigned char, int, int)) |
| | Register an keyboard input processing callback function.
|
| void ESUTIL_API | esLogMessage (const char *formatStr,...) |
| | Log a message to the debug output for the platform.
|
| GLuint ESUTIL_API | esLoadShader (GLenum type, const char *shaderSrc) |
| | Load a shader, check for compile errors, print error messages to output log.
|
| GLuint ESUTIL_API | esLoadProgram (const char *vertShaderSrc, const char *fragShaderSrc) |
| | Load a vertex and fragment shader, create a program object, link program. Errors output to log.
|
| int ESUTIL_API | esGenSphere (int numSlices, float radius, GLfloat **vertices, GLfloat **normals, GLfloat **texCoords, GLuint **indices) |
| | Generates geometry for a sphere. Allocates memory for the vertex data and stores the results in the arrays. Generate index list for a TRIANGLE_STRIP.
|
| int ESUTIL_API | esGenCube (float scale, GLfloat **vertices, GLfloat **normals, GLfloat **texCoords, GLuint **indices) |
| | Generates geometry for a cube. Allocates memory for the vertex data and stores the results in the arrays. Generate index list for a TRIANGLES.
|
| char *ESUTIL_API | esLoadTGA (char *fileName, int *width, int *height) |
| | Loads a 24-bit TGA image from a file.
|
| void ESUTIL_API | esScale (ESMatrix *result, GLfloat sx, GLfloat sy, GLfloat sz) |
| | multiply matrix specified by result with a scaling matrix and return new matrix in result
|
| void ESUTIL_API | esTranslate (ESMatrix *result, GLfloat tx, GLfloat ty, GLfloat tz) |
| | multiply matrix specified by result with a translation matrix and return new matrix in result
|
| void ESUTIL_API | esRotate (ESMatrix *result, GLfloat angle, GLfloat x, GLfloat y, GLfloat z) |
| | multiply matrix specified by result with a rotation matrix and return new matrix in result
|
| void ESUTIL_API | esFrustum (ESMatrix *result, float left, float right, float bottom, float top, float nearZ, float farZ) |
| void ESUTIL_API | esPerspective (ESMatrix *result, float fovy, float aspect, float nearZ, float farZ) |
| | multiply matrix specified by result with a perspective matrix and return new matrix in result
|
| void ESUTIL_API | esOrtho (ESMatrix *result, float left, float right, float bottom, float top, float nearZ, float farZ) |
| | multiply matrix specified by result with a perspective matrix and return new matrix in result
|
| void ESUTIL_API | esMatrixMultiply (ESMatrix *result, ESMatrix *srcA, ESMatrix *srcB) |
| | perform the following operation - result matrix = srcA matrix * srcB matrix
|
| void ESUTIL_API | esMatrixLoadIdentity (ESMatrix *result) |